<?php

class NguoiDungService {

    public static function getByID($Id) {
        $user = NguoiDung::model()->findByPk($Id);
        return $user;
    }
    public static function getDanhMucs($IdNguoiDung){
        $DanhMucs = DanhMucQuanTam::model()->findAllByAttributes(array("NguoiDungId"=> $IdNguoiDung));
        return $DanhMucs;
    }
}
